import java.util.Iterator;


public class TeamDriver {

	public static void main(String[] args) {
		Team myTeam = new Team("Canucks");
		
		myTeam.add(new HockeyPlayer("Daniel", "Sedin"));
		myTeam.add(new HockeyPlayer("Ryan", "Kesler"));
		
		
		HockeyPlayer sample = new HockeyPlayer("Daniel", "Sedin");
		
		myTeam.addGoal(sample);
		
		int totalPoints = myTeam.getTotalPoints();
		
		myTeam.remove(new HockeyPlayer("Daniel", "Sedin"));
		
		for(int i = 0; i < myTeam.size(); i++) {
			HockeyPlayer who = myTeam.get(i);
			System.out.println(who.getLastName() + "  " + who.getTotalPoints());
		}
		
		Iterator<HockeyPlayer> gofer = myTeam.iterator();
		while(gofer.hasNext()) {
			HockeyPlayer who = gofer.next();
			System.out.println(who.getLastName() + "  " + who.getTotalPoints());
		}
		
		
		for(HockeyPlayer who : myTeam) {
			System.out.println(who.getLastName() + "  " + who.getTotalPoints());		
		}
	}

}
